package com.atxiaodei.springbootwebthymeleaf.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @ClassName ThemeleafController
 * @Deacription TODO
 * @Author 王盟
 * @Date 2021/3/30 9:21
 * @Version 1.0
 **/
@Controller
public class ThemeleafController {

    @RequestMapping("/themeleaf1")
    public String themeleaf1(Model model){
        String msg="这是SpringBoot 第一个themeleaf";
        model.addAttribute("msg",msg);
        return "index";
    }
}
